package com.compass.ui.client;

import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.EventType;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.layout.VBoxLayout;

public class ProjectConfigurationPanel extends ContentPanel
{
	LinkLabel conf1;
	LinkLabel conf2;
	
	public ProjectConfigurationPanel()
	{
		conf1 = new LinkLabel(" - Configuration 1");
		conf2 = new LinkLabel(" - Configuration 2");
		setHeading("Configuration");
		setBorders(false);
		setLayout(new VBoxLayout());
		add(conf1);
		add(conf2);
		this.setWidth("150px");
		this.setHeight("418px");
	}
	
	public void addConfigListener(EventType eventType, Listener<? extends BaseEvent> listener)
	{
		conf1.addListener(eventType, listener);
		conf2.addListener(eventType, listener);
	}
}
